package com.tianshuo.circledepend.config;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.stereotype.Component;

/**
 * @ClassName : CustomBeanFactoryPostProcessor
 * @Description : 自定BeanFactoryPostProcessor
 * @Author : tianshuo
 * @Date: 2020-08-29 11:30
 */
@Component
public class CustomBeanFactoryPostProcessor implements BeanFactoryPostProcessor {
    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
        BeanDefinition appConfig = beanFactory.getBeanDefinition("circleConfig");
        System.out.println(appConfig.getClass());
    }
}

